#include "mainwindow.h"
#include <DApplication>
#include "src/opendialog.h"
#include <QTranslator>
#include <DAboutDialog>
DWIDGET_USE_NAMESPACE
int main(int argc, char *argv[])
{
    DApplication a(argc, argv);
    a.loadTranslator();
    a.setProductName("APK installer");
    a.setProductIcon(QIcon::fromTheme("application-vnd.android.package-archive"));
    a.setApplicationVersion("1.0");
    QTranslator qtTranslator;
    qtTranslator.load(a.applicationDirPath()+"/translations/language." + QLocale::system().name());
    a.installTranslator(&qtTranslator);
    OpenDialog dlg;

    if(argc==2){
        QString path(argv[1]);
        dlg.open(path);
    }else {
        dlg.show();
    }



    return a.exec();
}
